import 'package:fish_redux/fish_redux.dart';

import 'action.dart';
import 'state.dart';

Reducer<VillageSimpleState> buildReducer() {
  return asReducer(
    <Object, Reducer<VillageSimpleState>>{
      VillageSimpleAction.action: _onAction,
      VillageSimpleAction.refreshUI: _refreshUI,
    },
  );
}

VillageSimpleState _onAction(VillageSimpleState state, Action action) {
  final VillageSimpleState newState = state.clone();
  return newState;
}

VillageSimpleState _refreshUI(VillageSimpleState state, Action action) {
  final VillageSimpleState newState = state.clone();
  return newState;
}
